<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
       body{
           counter-reset: aaa;
       }
       p{con}
       p::before{counter-increment: aaa;
           content:""counter(aaa)"";}
    </style>
</head>
<body> 
<p>1</p>
<p>2</p>
<p></p>
<p></p>
<p></p>
</body>
</html>